Skip to contentSkip to conversation

VMM detection

DISCUSSION Wu Bingzheng 2 participants 2 messages Mar 4, 2009

lore
Share & tools
lore
#0 lore raw

Hi men,

If there is an application who wants to detect what the OS is running on, physical hardware or Xen, can he do it like this:

using SGDT to get GDT's address.

If its address is 0xCxxxxxxx, then it's on physical hardware (the OS is Linux) If the address is 0xFxxxxxxx (0xFE820000), then it's on Xen.

I test it, and it works.

Can Xen do something to prevent this?

Thanks,
Wu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

It would be impossible to hide virtualisation from a PV guest kernel of course, and very hard to hide it from a PV guest application also.

-- Keir

Quoted 8 lines · Wu Bingzheng

using SGDT to get GDT's address.

If its address is 0xCxxxxxxx, then it's on physical hardware (the OS is Linux) If the address is 0xFxxxxxxx (0xFE820000), then it's on Xen.

I test it, and it works.

Can Xen do something to prevent this?